﻿#include "mainwindow.h"
#include <QApplication>
#include <QSharedMemory>

#include "apputils.h"
#include "DialogValid.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    if(AppUtils::IsShareMemoryOccupy("SpectroMeterControl",true))
    {
        return 1;
    }

    QApplication::setQuitOnLastWindowClosed(false);

    MainWindow w;
    w.show();

    return a.exec();
}
